package com.jf.identity.entity;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @author FCG
 */
public class BehaviorFeedBack extends BehaviorDetail {
    private static final long serialVersionUID = -6319540622136915670L;
    /**
     * 生成行为引导反馈uuid
     */
    private String uid;
    /**
     * 行为引导库id 最大32个字符
     */
    @NotBlank(message = "行为引导库id 不能为空")
    @Size(max = 32, message = "行为引导库id 最大32个字符")
    private String behaviorId;
    /**
     * 行为引导状态 0:正常 1:不正常
     */
    @NotBlank(message = "行为引导状态 不能为空")
    @Range(min = 0,max = 1,message = "行为引导状态 0:正常 1:不正常")
    private String behaviorStatus;
    /**
     * 反馈时间2018-04-10 10:00:00
     */
//    @NotNull(message = "反馈时间 不能为空")
    private Date dateTime;
    /**
     * 上报来源（1：视频监考 2：现场监考）
     */
    @NotBlank(message = "上报来源 不能为空")
    @Range(min = 2, max = 2, message = "上报来源（2：现场监考）")
    private String behaviorFrom;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getBehaviorId() {
        return behaviorId;
    }

    public void setBehaviorId(String behaviorId) {
        this.behaviorId = behaviorId;
    }

    public String getBehaviorStatus() {
        return behaviorStatus;
    }

    public void setBehaviorStatus(String behaviorStatus) {
        this.behaviorStatus = behaviorStatus;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getBehaviorFrom() {
        return behaviorFrom;
    }

    public void setBehaviorFrom(String behaviorFrom) {
        this.behaviorFrom = behaviorFrom;
    }

}
